<div><canvas id="qrcode"></canvas></div>
<!-- <script src="https://gitee.com/iTouchTV/ipa/raw/feature/hugo/a_upload/js/jquery.min.js"></script>
<script src="https://gitee.com/iTouchTV/ipa/raw/feature/hugo/a_upload/js/qrcode.min.js"></script>
<script src="https://gitee.com/iTouchTV/ipa/raw/feature/hugo/a_upload/js/jquery.qrcode.js"></script> -->
<script src="https://gitee.com/iTouchTV/ipa/raw/feature/hugo/a_upload/js/qr-code-with-logo.browser.min.js"></script>

<script type="text/javascript">    
QrCodeWithLogo.toCanvas({
    canvas: document.getElementById('qrcode'), // 换成你的canvas节点
    content: window.location.href,
    width: 240,
    logo: {
      // src: 'https://gitee.com/iTouchTV/ipa/raw/feature/hugo/a_upload/com.touchtv.zijin/1.0.0/com.touchtv.zijin_1.0.0_201912061141_icon.png',
      src: {{ .Get 0}},
      
    }
  })

// new QRCode(document.getElementById("qrcode"), window.location.href);
// new QRCode(document.getElementById("qrcode"), {
//     text: "i am the first qrcode",
//     width: 128, //生成的二维码的宽度
//     height: 128, //生成的二维码的高度
//     colorDark : "#000000", // 生成的二维码的深色部分
//     colorLight : "#ffffff", //生成二维码的浅色部分
//     correctLevel : QRCode.CorrectLevel.H
//   }); 
</script>